const mysql = require("mysql");
//本地
// const pool = mysql.createPool({
//   host: "127.0.0.1",
//   // host:"170.187.227.72",
//   port: 3306,
//   user: "root",
//   password: "admin123",
//   database: "vue_admin",
//   connectionLimit: 15,
//   charset: "utf8mb4",
// });
//线上
// iZbp1h1gu3djkpokro224cZ
//海外


const pool = mysql.createPool({
    host: "45.76.212.42",
    // host:"170.187.227.72",
    port: 3306,
    user: "admin-ldy",
    password: "admin-ldy",
    database: "jeesite_v5",
    connectionLimit: 100,
    charset: "utf8mb4",
    timezone: '+08:00' // 或某个具体时区, 如 '+08:00'
});
//国内
//  const   pool = mysql.createPool({
//         host: "118.178.33.10",
//         port: 3306,
//         user: "root",
//         password: "admin-ldy",
//         database: "momo",
//         connectionLimit: 15,
//         charset: "utf8mb4",
//         timezone: '+08:00' // 或某个具体时区, 如 '+08:00'
//     });
module.exports = pool;
